import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)



import login from '../components/login/login.vue'
import index from '../components/index/index.vue'

import personal from '../components/personal/personal.vue'
import Shopping from '../components/Shopping/Shopping.vue'
export default new Router({
	routes:[
		{
			path: '/login',
			name: 'login',
			component: login
		},
		{
			path: '/index',
			name: 'index',
			component: index,
			children:[
				{
					path: '/personal',
					name: 'personal',
					component: personal
				},
				{
					path: '/Shopping',
					name: 'Shopping',
					component: Shopping
				}
			]
		},
	]
})